package com.ltkj.baseplatform.domain;

import com.ltkj.system.api.domain.SysUser;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * @author chenzeen
 */
public class WuserExt extends SysUser {
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty("主键")
    private Long id;

    /** 用户ID */
    //@ApiModelProperty("用户ID")
    //private Long userId;

    /** openId */
    @ApiModelProperty("openid")
    private String openid;

    /** 真实姓名 */
    @ApiModelProperty("真实姓名")
    private String realName;

    /** 身份证号 */
    @ApiModelProperty("身份证号")
    private String userIdcode;

    /** 手机号是否认证 */
    @ApiModelProperty("手机号是否认证")
    private String phoneAuth;

    /** 身份证号是否认证 */
    @ApiModelProperty("身份证号是否认证")
    private String idcodeAuth;

    @ApiModelProperty("人脸是否认证,0:认证")
    private String faceAuth;

    @ApiModelProperty("地址")
    private String address;

    @ApiModelProperty("紧急联系人")
    private String sosContact;

    @ApiModelProperty("紧急联系电话")
    private String sosContactPhone;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setRealName(String realName)
    {
        this.realName = realName;
    }

    public String getRealName()
    {
        return realName;
    }
    public void setUserIdcode(String userIdcode)
    {
        this.userIdcode = userIdcode;
    }

    public String getUserIdcode()
    {
        return userIdcode;
    }
    public void setPhoneAuth(String phoneAuth)
    {
        this.phoneAuth = phoneAuth;
    }

    public String getPhoneAuth()
    {
        return phoneAuth;
    }
    public void setIdcodeAuth(String idcodeAuth)
    {
        this.idcodeAuth = idcodeAuth;
    }

    public String getIdcodeAuth()
    {
        return idcodeAuth;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getFaceAuth() {
        return faceAuth;
    }

    public void setFaceAuth(String faceAuth) {
        this.faceAuth = faceAuth;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getSosContact() {
        return sosContact;
    }

    public void setSosContact(String sosContact) {
        this.sosContact = sosContact;
    }

    public String getSosContactPhone() {
        return sosContactPhone;
    }

    public void setSosContactPhone(String sosContactPhone) {
        this.sosContactPhone = sosContactPhone;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("openId", getOpenid())
                .append("realName", getRealName())
                .append("userIdcode", getUserIdcode())
                .append("phoneAuth", getPhoneAuth())
                .append("idcodeAuth", getIdcodeAuth())
                .append("address", getAddress())
                .append("sosContact", getSosContact())
                .append("sosContactPhone", getSosContactPhone())
                .toString();
    }
}
